
import {
  Inject,
  Controller,
  Post,
  Provide,
  Validate,
  Get,
} from '@midwayjs/decorator';
import { Context } from 'egg';
import BaseController from '../core/baseController';


@Provide()
@Controller('/demo')
export class DemoController extends BaseController {
  @Inject()
  ctx: Context;

  @Post('/report')
  @Validate()
  async report(body:any) {
    return this.success({a:1});
  }


  @Get('/report')
  async reportList(){
    return this.success({b:2})
  }
}
